home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / util4 / bxchng12.lha / BExchange12 / Install_English < prev    next >
Text File  |  1996-01-25  |  7KB  |  340 lines

  1. ;
  2. ; $VER: Installation de BExchange v1.2 (25.1.1996)
  3. ;
  4. ;
  5. ;
  6.  
  7.         (set UserLevel.old @user-level)
  8.  
  9. ; Initialisation des messages.
  10.  
  11.         (set Language 16)
  12.  
  13.         (set #WrongKickStart "\nBExchange need OS2.04+")
  14.  
  15.  
  16.  
  17. ; S'assurer que l'on utilise un KickStart >= à 2.04.
  18.  
  19.         (if (< (/ (getversion) 65536) 37)
  20.           (abort #WrongKickStart)
  21.         )
  22.  
  23.  
  24. (set LangueHelp "Select which language you want the documentation in.")
  25.  
  26. (set IconHelp "What kind of icons do you want:\n\n- 4 colors:          Standards icons\n- 8 colors MagicWB : Standard MagicWB\n- NewIcon :          Standard NewIcon")
  27.  
  28. (set bguiHelp "The bgui.library makes it easier to create a nice GUI.\n\nbgui.library   (C) 1993-1995 Jan van den Baard")
  29.  
  30. (set Refresh  "Choose refresh mode of window")
  31. (set Aspect   "Choose size of borders:\n\n- AutoAspect:  Keep the screen-aspect-ratio\n- Thin:        Force thin mode\n- Standard:    Like the system")
  32. (set Frame    "Choose buttons look")
  33. (set WindowPos  "Where windows should open its GUI ?")
  34. (set NewLook    "NewLook mode will create a white listview scroller")
  35.  
  36. (set BufferRP   "Allow the use of RastPort buffer, for display the GUI as one block. But under RTG the display will be slower.\n\nUnder RTG set NO")
  37.  
  38.  
  39. ;
  40. ; Répertoire de destination
  41. ; *************************
  42. ;
  43.  
  44. (set Path.source (pathonly @icon) )
  45.  
  46. (set  Path.dest
  47.         (askdir
  48.                 (prompt "\nSelect or create a directory to install BExchange in.\n")
  49.                 (help @askdir-help)
  50.                 (default "Sys:Tools/Commodities")
  51.         )
  52. )
  53.  
  54.  
  55. ; Copie de l'executable
  56. ; **********************
  57. (copyfiles
  58.         (prompt "Copy of BExchange")
  59.         (help @copyfiles-help)
  60.         (source Path.source)
  61.         (dest Path.dest)
  62.         (choices "BExchange" "BExchange.info")
  63. )
  64.  
  65.  
  66.  
  67. ; Copie de la documentation
  68. ; *************************
  69. (set Doc (askchoice
  70.             (prompt "Documentation of BExchange")
  71.             (choices "French" "English" )
  72.             (help LangueHelp)
  73.             (default 1)
  74.  
  75.     )
  76. )
  77.  
  78.  
  79.     (if (= Doc 0)
  80.         (copyfiles
  81.             (source "BExchange_FR.guide")
  82.             (dest Path.dest)
  83.             (newname "BExchange.guide")
  84.             (infos)
  85.         )
  86.     )
  87.  
  88.     (if (= Doc 1)
  89.         (copyfiles
  90.             (source "BExchange_ENG.guide")
  91.             (dest Path.dest)
  92.             (newname "BExchange.guide")
  93.             (infos)
  94.         )
  95.     )
  96.  
  97.     ;(if (= Doc 2)
  98.     ;    (copyfiles
  99.     ;        (source "BExchange_D.guide")
  100.     ;        (dest Path.dest)
  101.     ;        (newname "BExchange.guide")
  102.     ;        (infos)
  103.     ;    )
  104.     ;)
  105.  
  106.  
  107.  
  108.  
  109. ; On copie les icônes
  110. ; *******************
  111. (set Icon (askchoice
  112.             (prompt "What sort of icons do you want ?")
  113.             (choices "4 couleurs" "MagicWB" "NewIcon")
  114.             (help IconHelp)
  115.     )
  116. )
  117.  
  118.     ; MagicWB ?
  119.     ; *********
  120.     (if (= Icon 1)
  121.         (
  122.         (copyfiles
  123.             (source "Icons/EXE_MagicWb.info")
  124.             (dest Path.dest)
  125.             (newname "BExchange.info")
  126.         )
  127.  
  128.         (copyfiles
  129.             (source "Icons/Guide_MagicWb.info")
  130.             (dest Path.dest)
  131.             (newname "BExchange.guide.info")
  132.         )
  133.         )
  134.     )
  135.  
  136.     ; NewIcon ?
  137.     ; *********
  138.     (if (= Icon 2)
  139.         (
  140.         (copyfiles
  141.             (source "Icons/EXE_NewIcon.info")
  142.             (dest Path.dest)
  143.             (newname "BExchange.info")
  144.         )
  145.  
  146.         (copyfiles
  147.             (source "Icons/Guide_NewIcon.info")
  148.             (dest Path.dest)
  149.             (newname "BExchange.guide.info")
  150.         )
  151.         )
  152.     )
  153.  
  154.  
  155. ; Copie de la bgui.library
  156. ; ************************
  157. (copylib
  158.     (prompt "Copy of the bgui.library")
  159.     (source "libs/bgui.library")
  160.     (dest "Libs:")
  161.     (help bguiHelp)
  162.     (confirm)
  163. )
  164.  
  165.  
  166.  
  167.  
  168. ; Parametrage du programme
  169. ; ************************
  170.  
  171. ; On prend le chemin de destination et le nom
  172. (set DestName (tackon Path.dest "BExchange"))
  173.  
  174.  
  175. ; ***********
  176. ; * REFRESH *
  177. ; ***********
  178. (set Icon (askchoice
  179.             (prompt "What kind of refresh do you want ?")
  180.             (choices "SmartRefresh" "SimpleRefresh")
  181.             (help Refresh)
  182.     )
  183. )
  184.  
  185.     (if (= Icon 0)
  186.         (tooltype
  187.             (settooltype "SIMPLEREFRESH" "NO")
  188.             (dest DestName)
  189.         )
  190.     )
  191.  
  192.     (if (= Icon 1)
  193.         (tooltype
  194.             (settooltype "SIMPLEREFRESH" "YES" )
  195.             (dest DestName)
  196.         )
  197.     )
  198.  
  199. ; **********
  200. ; * ASPECT *
  201. ; **********
  202. (Set Icon (askchoice
  203.             (prompt "What aspect do you want for the GUI ?")
  204.             (choices "Automatic (following screen-ratio)" "Thin" "Standard")
  205.             (help Aspect)
  206.         )
  207. )
  208.     (if (= Icon 0)
  209.         (tooltype
  210.             (settooltype "ASPECT" "AUTO")
  211.             (dest DestName)
  212.         )
  213.     )
  214.  
  215.     (if (= Icon 1)
  216.         (tooltype
  217.             (settooltype "ASPECT" "THIN")
  218.             (dest DestName)
  219.         )
  220.     )
  221.  
  222.     (if (= Icon 2)
  223.         (tooltype
  224.             (settooltype "ASPECT" "STANDARD")
  225.             (dest DestName)
  226.         )
  227.     )
  228.  
  229. ; *********
  230. ; * FRAME *
  231. ; *********
  232. (Set Icon (askchoice
  233.             (prompt "What kind of frame do you want ?")
  234.             (choices "Standard" "XEN")
  235.             (help Frame)
  236.         )
  237. )
  238.     (if (= Icon 0)
  239.         (tooltype
  240.             (settooltype "FRAME" "STANDARD")
  241.             (dest DestName)
  242.         )
  243.     )
  244.  
  245.     (if (= Icon 1)
  246.         (tooltype
  247.             (settooltype "FRAME" "XEN")
  248.             (dest DestName)
  249.         )
  250.     )
  251.  
  252.  
  253. ; *******************
  254. ; * NEWLOOKSCROLLER *
  255. ; *******************
  256. (Set Icon (askchoice
  257.             (prompt "Do you want the NewLook mode for Listview scroller ?")
  258.             (choices "Yes" "No")
  259.             (default 1)
  260.             (help NewLook)
  261.         )
  262. )
  263.     (if (= Icon 0)
  264.         (tooltype
  265.             (settooltype "NEWLOOKSCROLLER" "YES")
  266.             (dest DestName)
  267.         )
  268.     )
  269.  
  270.     (if (= Icon 1)
  271.         (tooltype
  272.             (settooltype "NEWLOOKSCROLLER" "NO")
  273.             (dest DestName)
  274.         )
  275.     )
  276.  
  277.  
  278. ; ******************
  279. ; * WINDOWPOSITION *
  280. ; ******************
  281. (Set Icon (askchoice
  282.             (prompt "Where do you want the program open its GUI ?")
  283.             (choices "Center of screen" "On the mouse" "On the top-left")
  284.             (help WindowPos)
  285.         )
  286. )
  287.     (if (= Icon 0)
  288.         (tooltype
  289.             (settooltype "WINDOWPOSITION" "CENTERSCREEN")
  290.             (dest DestName)
  291.         )
  292.     )
  293.  
  294.     (if (= Icon 1)
  295.         (tooltype
  296.             (settooltype "WINDOWPOSITION" "CENTERMOUSE")
  297.             (dest DestName)
  298.         )
  299.     )
  300.  
  301.     (if (= Icon 2)
  302.         (tooltype
  303.             (settooltype "WINDOWPOSITION" "TOPLEFT")
  304.             (dest DestName)
  305.         )
  306.     )
  307.  
  308. ; **************
  309. ; * NoBufferRP *
  310. ; **************
  311. (Set Icon (askchoice
  312.             (prompt "Use option BufferRP ?")
  313.             (choices "Yes" "No")
  314.             (default 1)
  315.             (help BufferRP)
  316.         )
  317. )
  318.     (if (= Icon 0)
  319.         (tooltype
  320.             (settooltype "NOBUFFERRP" "NO")
  321.             (dest DestName)
  322.         )
  323.     )
  324.  
  325.     (if (= Icon 1)
  326.         (tooltype
  327.             (settooltype "NOBUFFERRP" "YES")
  328.             (dest DestName)
  329.         )
  330.     )
  331.  
  332.  
  333.  
  334. (message "\nPlease read documentation for other options")
  335.  
  336.  
  337. (set @default-dest Path.dest )
  338.         (exit)
  339.  
  340.